﻿@{
    Layout = null;
}
@model System.Collections.IEnumerable
<!DOCTYPE html>
<html>
@Html.Partial("LoadPanelPartial")
<head>
<title></title>
    @if (false)
    {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
     <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
    @Html.DevExpress().GetStyleSheets(
                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

)
    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)

    <script type="text/javascript">

        function OnBeginCallback(s, e) {
            e.customArgs["command"] = e.command;
            e.customArgs["pageIndex"] = s.pageIndex;
            e.customArgs["pageCount"] = s.pageCount;
            e.customArgs["pageRowSize"] = s.pageRowSize;
            e.customArgs["pageRowCount"] = s.pageRowCount;
            e.customArgs["FStatus"] = $("#hidFStatus").val();
            e.customArgs["NSRBMQ"] = $("#hidNSRBMQ").val();
        }
        function search() {

            $("#hidNSRBMQ").val(NSRBMQ.GetText());
            $("#hidFStatus").val(FStatus.GetValue());
            gvEditing.Refresh();
        }
        function undo() {
            ASPxClientTextBox.Cast("NSRBMQ").SetText("");



            ASPxClientTextBox.Cast("FStatus").SetValue("");


        }

        function AllowanceFileLook3(codeNo) {
            $.ajax({
                type: 'POST',
                url: rootPath + '/AllowanceFileAudit/VerifyFile',
                data: { fAllowanceFileID: codeNo },
                success: function (result) {
                    if (result == "true") {
                        window.location.href = rootPath + '/AllowanceFileAudit/AllowanceFileAuditEdit?FAllowanceFileID=' + codeNo;
                    }
                    else {
                        alert("预受理已生成无法修改！需删除预受理信息才可继续操作！");
                    }
                }
            });
           
        }

        function AllowanceFileLook(codeNo) {
            window.location.href = rootPath + '/AllowanceFileAudit/AllowanceFileAuditEdit?FAllowanceFileID=' + codeNo;
        }

        function TaxAuditFormDel(codeNo) {

            var rs = window.showModalDialog(rootPath + "/ReturnDlg?tableName=t_AllowanceFile&id=" + codeNo + "&feq=20");

            if (rs == "S") {
                gvEditing.Refresh();
            }
        }
        
    </script>
</head>
<body>
 <table align="center" class="tableForm">
        <tr>
            <td style="text-align: right; vertical-align: middle" class="tdClass">
                状态:
            </td>
            <td style="text-align: left; vertical-align: middle" class="tdClass">
                @Html.DevExpress().ComboBox(settings =>
      {
          settings.Name = "FStatus";
          settings.Width = 100;
          settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
          settings.Properties.TextField = "Text";
          settings.Properties.ValueField = "Value";
      }).BindList(new List<SelectListItem> { 
                          
                           new SelectListItem { Text = "未出具文件", Value = "1" },
                           new SelectListItem { Text = "已出具文件", Value = "2" }
                            //new SelectListItem { Text = "申请复核", Value = "2" }
                      
     }).GetHtml()
            </td>
            <td style="text-align: right; vertical-align: middle" class="tdClass">
                文件名
            </td>
            <td class="tdClass">
                @Html.DevExpress().TextBox(settings =>
      {
          settings.Name = "NSRBMQ";
          settings.Width = 200;

      }).GetHtml()
            </td>
            <td align="right" class="tdClass">
            </td>
            <td class="tdClass">
            </td>
            <td>
                @Html.DevExpress().Button(settings =>
            {
                settings.Name = "btnSearch";
                settings.Text = "查询";
                settings.ControlStyle.CssClass = "button";
                settings.Images.Image.Url = Url.Content("~/Content/ControlImages/search.png");
                settings.ClientSideEvents.Click = "search";
            }).GetHtml()
                @Html.DevExpress().Button(settings =>
            {
                settings.Name = "btnUndo";
                settings.Text = "重置";
                settings.ControlStyle.CssClass = "button";
                settings.Images.Image.Url = Url.Content("~/Content/ControlImages/undo_blue.png");
                settings.ClientSideEvents.Click = "undo";
            }).GetHtml()
            </td>
        </tr>
    </table>
    @Html.Hidden("hidFStatus", "")
    @Html.Hidden("hidNSRBMQ", "")
        @Html.Partial("AllowanceFileAuditListPartial", Model)
    <script>
        lp.Hide();
    </script>
</body>
</html>
